<template>
	<div id="app">
		{{ message }}
	</div>
</template>

<script>
	export default {
		beforeCreate() {
			console.log(this.$route)
			const nextPath = this.$route.query.nextPath
			this.$router.replace({
				path: nextPath
			})
			console.log("调用")
			console.log(nextPath)
		},
		
		el: "app",
		data: {
			message: 'hello!'
		}
		render: function(h) {
			return h() // avoid warning message
		}
	}
</script>

<style>
</style>
